﻿<ctl:ChildWindow x:Class="ExpenseReport.ModifyExpenseDetailChildWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:ctl="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
    xmlns:dataForm="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.DataForm"
    xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"
    Title="Expense Report Application">
    <StackPanel Background="White">
        <dataForm:DataForm x:Name="detailForm" ItemsSource="{Binding}" Header="Edit Expense Report Detail"  Width="380" AutoGenerateFields="False">
            <dataForm:DataForm.Fields>
                <dataForm:DataFormTextField Binding="{Binding Path=ShortDescription, Mode=TwoWay, NotifyOnValidationError=true,  ValidatesOnExceptions=true}"/>
                <dataForm:DataFormTextField Binding="{Binding Path=Category, Mode=TwoWay, NotifyOnValidationError=true,  ValidatesOnExceptions=true}"/>
                <dataForm:DataFormDateField Binding="{Binding Path=DateIncurred, Mode=TwoWay, NotifyOnValidationError=true,  ValidatesOnExceptions=true}"/>
                <dataForm:DataFormTextField Binding="{Binding Path=Amount, Mode=TwoWay, NotifyOnValidationError=true,  ValidatesOnExceptions=true}"/>
                <dataForm:DataFormCheckBoxField Binding="{Binding Path=CreditCardExpense, Mode=TwoWay, NotifyOnValidationError=true,  ValidatesOnExceptions=true}"/>
                <dataForm:DataFormTextField Binding="{Binding Path=City, Mode=TwoWay, NotifyOnValidationError=true,  ValidatesOnExceptions=true}"/>
                <dataForm:DataFormTextField Binding="{Binding Path=State, Mode=TwoWay, NotifyOnValidationError=true,  ValidatesOnExceptions=true}"/>
                <dataForm:DataFormTextField Binding="{Binding Path=LongDescription, Mode=TwoWay, NotifyOnValidationError=true,  ValidatesOnExceptions=true}"/>
            </dataForm:DataForm.Fields>
        </dataForm:DataForm>
    </StackPanel>
</ctl:ChildWindow>
